package cn.mrcode.fd.blog.task;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * task 任务工具类
 *
 * @author : zhuqiang
 * @version : V1.0
 * @date : 2016/1/1 14:44
 */
public final class TaskSVUtil {
    private static ExecutorService executor = Executors.newCachedThreadPool();
    /**
     * 所有线程任务统一入口启动
     */
    public static void startTask(){
        executor.execute(new TagHanderTask());//异步处理标签写入task
        executor.execute(new StatTask());
        executor.execute(new StatHzCleanTask());
        CacheAutoScanTask.refresh();
        executor.execute(new CacheAutoScanTask());
    }
}
